home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 July
/
EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso
/
recent1
/
wwwcount2.3src.lha
/
wwwcount2.3
/
AMIGA INSTALL
next >
Wrap
Text File
|
1997-05-16
|
7KB
|
237 lines
WWWCOUNTER 2.3 (C) 1996 by Muhammad A. Muquit
Ported for the Amiga by Bert Vortman.
**** SOURCE DISTRIBUTION ****
Copyright:
Copyright 1995-1996 by Muhammad A Muquit. Permission to use, copy, modify
and sell this program for any purpose is hereby granted without fee,
provided that this copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation. If the program is included in a book, publication or in a
software distribution media for sale, the author must be notified about it.
No binary only distribution is allowed. All distributions must include the
source and this copyright notice.
THIS PROGRAM IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE
AUTHOR Muhammad A. Muquit BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
For questions about the program, mail to:
ma_muquit@fccc.edu
For questions about the Amiga Port:
albertv@spinnewiel.xs4all.nl
AMIGA INSTALL
-------------
Installation of the WWWCounter is almost exactly the same as the
unix version of the wwwcounter. You only need to change the
count-install script.
REQUIREMENTS
------------
- Full GCC installation. You can obtain GCC from:
http://www.ninemoons.com
- static IP address
- Apache :
http://www.dsdelft.nl/~apache
or
AWS :
http://www.omnipresence.com
- Unixdirs3.lha from Aminet in util/boot.
- executehack.lha from Aminet in util/boot
STEPS TO COMPILE AND INSTALL
----------------------------
In the current release of the counter, there should not be any need for
hand editing any files except for the Count-install script. Several
configuration scripts are supplied to automate the whole process.
I am giving a little description about the scripts in case you
you are curious:
* Count-config
script to generate the header file config.h, a variable
template file for install program.
* configure
script to generate correct Makefiles for the Amiga
* Gen-conf
script to generate the configuration file.
* Count-install
script to install the Count binary Count.cgi, digit images, configuration
file and the rgb color name database to the correct places.
STEP 1
======
Running Apache:
---------------
If you are running apache, do nothing. Just make sure that you run
the wwwcounter as the user/group which runs the httpd. Make sure
that all files after installing run under this user/group
(especially in the data directory)
Running AWS:
------------
Add a user & group to Miami or Amitcp, something like:
user : httpuser
group: daemon
Make sure that you have installed the fileutils-3.15-bin.lha
from www.ninemoons.com. You need especially the chmod and
chown program. It is strange for Amiga users to use these
chmod and chown programs but it is necessary, otherwise the
wwwcounter won't run. Make also sure that all
files (after compilation & installing) have the same
owner & group ownership as the ones you just added to the
users of your server.
STEP 2
======
If you have installed the executehack.lha: (you can find it on
Aminet)
Set at a shell prompt the script bits of these files:
> protect configure RWEDS
> protect count-config RWEDS
> protect gen-conf RWEDS
> protect count-install RWEDS
If you have no executehack.lha installed, run the next
commands as: sh 'scriptname'
STEP 3
======
Now at the shell prompt, type the following commands in the described
order and press Return.
key:
> ./Count-config
The script will ask questions with brief description. Answer them.
Look at the directory structure image to better understand the questions.
> ./configure
The script will not ask any questions, but you will see the informational
messages about your system. It will create the Makefiles Makefile,
combine/Makefile and utils/Makefile for your system. It's maybe wise
to set the source directory in the 'srcdir=' variabele.
> make clean
(not needed if you are compiling the first time)
> make
Compilation will start if the previous two scripts completed successfully.
It will take some time. If compilation succeeds, go to the next step.
> ./Gen-conf
This script will ask you questions about your system. Answer them.
This process will create the configuration file for the counter.
>./Count-install
This is the final step. This scripts will install the necessary things
for the counter in your system.
Change the following line in the Count-install script:
INSTALL_PROG="./install-sh" in: INSTALL_PROG="/bin/install"
Ignore the message about root access, unless you're running MUFS!
This program will ask you some questions.
If you finished all the above steps successfully, you are ready to test
the counter.
STEP 4
======
Test the program from your browser. So, copy the countexample.html file in
the public directory to a place where you want it, startup Apache or AWS,
start your browser and type:
http:///countexample.html (or where ever you put it)
This is how it looks like:
<img src="/cgi-bin/Count.cgi?df=sample.dat" align=absmiddle>
A counter example
<img src="/cgi-bin/Count.cgi?display=clock" align=absmiddle>
The string between ? and " is called the QUERY_STRING. Make sure there is
no newlines in the img src= line and no space in the QUERY_STRING.
Here in, df=sample.dat, df means datafile and sample.dat is the counter
datafile. The counter stores the hits in this file. This datafile is supplied.
If you configured the counter to allow automatic datafile creation (look at
count.cfg file), you can specify a datafile with df like
df=count.dat. The file count.dat will be created for you if the
permission to the data directory is correct.
If you configured not to allow automatic datafile creation (good thing),
you have to create this file in the data directory.
Start your texteditor, type: 0 and save it as:
count.dat
in the data directory. And chown to the user & group of the wwwcounter. ie:
chown user:group count.dat
chmod 664 count.dat
The counter program has lots of options, you can make it work and look the
way you desire. In the query string, you can use the options described
in the docs/Count.html file.
If you have any questions about compiling the wwwcounter mail to:
albertv@spinnewiel.xs4all.nl
All options of the Unix version are available in the Amiga version.
happy html'ing,
Bert Vortman